import dotenv from "dotenv";

dotenv.config()

export const config = {
  db: {
    postgres: {
      host: process.env.POSTGRES_HOST,
      name: process.env.POSTGRES_DB,
      password: process.env.POSTGRES_PASSWORD,
      port: Number(process.env.POSTGRES_PORT),
      username: process.env.POSTGRES_USER
    },
    redis: {
      host: process.env.REDIS_HOST,
      password: process.env.REDIS_PASSWORD,
      port: Number(process.env.REDIS_PORT)
    }
  },
  jwt: {
    expire: process.env.JWT_EXPIRED,
    secret: process.env.JWT_SECRET || ""
  },
  server: {
    name: "hep-backend",
    port: 3000
  },
  timezoneOffset: 480
}
